package cn.mesmile.security.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zb
 * @date 2020/4/5 22:47
 * @Description:
 */
@RequestMapping("/order")
@RestController
public class OrderController {

    @Secured("ROLE_ORDER")
    @GetMapping("/findAll")
    public String findAll(){
        return "findALL order USER";
    }
}
